<?php
	$DeliveryDateHistoryFields = array(
			array('name'=>_M('Requirement'), 'type'=>'select', 'param'=>array('SCTV_Requirement'=>'Customer Name'), 'required'=>true, 'visible'=>false),
			array('name'=>_M('Date Time'), 'type'=>'timestamp', 'required'=>true, 'visible'=>true),						
			array('name'=>_M('Employee'), 'type'=>'crm_contact', 'param'=>array('field_type'=>'select', 'crits'=>array(), 'format'=>array('CRM_ContactsCommon','contact_format_default')), 'required'=>true, 'visible'=>true),
			array('name'=>_M('Delivery Date'), 'type'=>'date', 'required'=>true, 'visible'=>true),											
			array('name'=>_M('Note'), 'type'=>'text', 'param'=>128, 'required'=>false, 'visible'=>true)
		);
		
		Utils_RecordBrowserCommon::install_new_recordset('SCTV_DeliveryDateHistory', $DeliveryDateHistoryFields);
		Utils_RecordBrowserCommon::set_caption('SCTV_DeliveryDateHistory', _M('Delivery Date History'));
		Utils_RecordBrowserCommon::add_default_access('SCTV_DeliveryDateHistory');
		
		Utils_RecordBrowserCommon::new_addon('SCTV_Requirement', 'SCTV/Requirement', 'requirement_delivery_date_history_addon', _M('Delivery Date History'));
		
?>